#pragma once

#include "IImageLoader.h"
#include "Sol9Types.h"
//#include "Image.h"
//#include "lib/FreeImage.h"

struct FIBITMAP;

namespace sol9
{
namespace graphics
{

	enum eColorFormat;

	class FreeImageLoader : public IImageLoader
	{
	public:
		virtual IImage* load(const std::tstring filename, int flags = 0) const;

	private:
		eColorFormat _getColorFormat(FIBITMAP* bitmap) const;
	};

} // namespace graphics
} // namespace sol9